﻿<%@ Page Title="Event Details" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="EventView.aspx.cs" Inherits="CARMS.Admin.EventView" %>
<%@ Import Namespace="CARMSBusiness.InterFace"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
        <vs:FormPanel ID="FormPanel1" runat="server" CaptionAlign="NotSet" RepeatColumns="1"
            Width="100%">
            <Items>
                <vs:FormItem HeaderText="Event Time">
                    <HeaderStyle Font-Bold="true" />
                    <ContentTemplate>
                        <asp:Label ID="lblDate" runat="server" SkinID="LabelContent" Width="370px" Text='<%# Eval("LogTime","{0:"+ApplicationConfiguration.DateTimeFormat+"}") %>'></asp:Label>
                    </ContentTemplate>
                </vs:FormItem>
                <vs:FormItem HeaderText="Category">
                    <HeaderStyle Font-Bold="true" />
                    <ContentTemplate>
                        <asp:Label ID="lblCategory" runat="server" Text='<%# Eval("Category") %>' SkinID="LabelContent"
                            Width="370px"></asp:Label>
                    </ContentTemplate>
                </vs:FormItem>
                <vs:FormItem HeaderText="Type">
                    <HeaderStyle Font-Bold="true" />
                    <ContentTemplate>
                        <asp:Label ID="lblType" runat="server" SkinID="LabelContent" Width="370px" Text='<%#  Eval("Level") %>'></asp:Label>
                    </ContentTemplate>
                </vs:FormItem>
                <vs:FormItem HeaderText="User">
                    <HeaderStyle Font-Bold="true" />
                    <ContentTemplate>
                        <asp:Label ID="lblUser" runat="server" SkinID="LabelContent" Width="370px" Text='<%# string.IsNullOrEmpty(Convert.ToString(Eval("UserName")))?"Unknown":Eval("UserName") %>'></asp:Label>
                    </ContentTemplate>
                </vs:FormItem>
                <vs:FormItem HeaderText="Source">
                    <HeaderStyle Font-Bold="true" />
                    <ContentTemplate>
                        <asp:Label ID="lblSource" runat="server" Text='<%# Eval("Source") %>' SkinID="LabelContent"
                            Width="370px"></asp:Label>
                    </ContentTemplate>
                </vs:FormItem>
                <vs:FormItem HeaderText="Message">
                    <HeaderStyle Font-Bold="true" />
                </vs:FormItem>
            </Items>
        </vs:FormPanel>
        <nobr>
            <asp:Panel runat="server" ID="panelMessage" CssClass="error-message">
            </asp:Panel>
        </nobr>
        <div style="text-align: center; margin-top: 10px;">
            <asp:Button ID="btnClose" runat="server" Text="Close" OnClientClick="window.$close();" />
        </div>
   
</asp:Content>
